package com.fxd.study.spring.ioc;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author xudongfu
 * @date 2023/02/07
 */
@Configuration
public class MyBeanConfig {

    @Bean(initMethod = "myInitMethod", destroyMethod = "myDestroyMethod")
    public MyBean myBean() {
        return new MyBean();
    }

}
